$(function(){
	$(".cencerns_button a").live('click',function(){
		var click = $(this);
		var c_name = $(this).parent().prev("#u_name").text();
		$.ajax({
			type: "POST",
			url: "php_ajax/concerns.php",
			dataType: "html",
			cache: false,
			data: {name: c_name},
			success: function(data) {
				if (!data){
					return;
				}
				else {
					click.css("color","#ccc");
					refreshConcerns(click,c_name);
					alert("您已关注此人");
					
				}
			}
		});
	});
	
	function refreshConcerns(click,c_name){
		$.ajax({
			type: "POST",
			url: "php_ajax/hotpeople_loadfans.php",
			dataType: "html",
			cache: false,
			data: {name: c_name},
			success: function(data){
				click.parent().next(".cencerns_f").empty().html(data);
			}
			
		});
		
	}
});